<div class="row">
<?php 
if (isset($this->msg)) {
	echo $this->msg;	
}
?>
<div class="span12">
<form method="post" action="<?=URL.'miniaturas/inserir' ?>">
<fieldset>
<legend>Inserir nova miniatura</legend>
<div class="control-group">
<label for="codigo">Código</label>
<input type="text" name="codigo" id="codigo" placeholder="Código" value="" autofocus required>
</div>
<div class="control-group">
<label for="destaque">Destaque</label>
<input type="radio" name="destaque" id="destaque" value="S">Sim 
<input type="radio" name="destaque" id="destaque" placeholder="" value="N" checked>Não
</div>
<div class="control-group">
<label for="nome">Nome</label>
<input type="text" name="nome" id="nome" placeholder="Nome" value="" required>
</div>
<div class="control-group">
<label for="">Ano</label>
<input type="text" name="ano" id="ano" placeholder="Ano ex.: 2009" value="" required>
</div>
<div class="control-group">
<label for="id_categoria">Categoria</label>
<select name="categoria">
<?php foreach ($this->categoria as $categoria) { ?>
	<option value="<?=$categoria->id; ?>"><?=utf8_encode($categoria->cat_nome); ?></option>
<?php } ?>      
</select>
</div>
<div class="control-group">
<label for="subcateg">Sub-categoria</label>
<input type="text" name="subcateg" id="subcateg" placeholder="Sub-categoria" value="" required>
</div>
<div class="control-group">
<label for="escala">Escala</label>
<input type="text" name="escala" id="escala" placeholder="Escala ex.: 1:36" value="" >
</div>
<div class="control-group">
<label for="peso">Peso</label>
<input type="text" name="peso" id="peso" placeholder="Peso ex.: 1.9" value="">
</div>
<div class="control-group">
<label for="comprimento">Comprimento</label>
<input type="text" name="comprimento" id="comprimento" placeholder="Comprimento ex.: 12.4" value="">
</div>
<div class="control-group">
<label for="largura">Largura</label>
<input type="text" name="largura" id="largura" placeholder="Largura ex.: 5.2" value="">
</div>
<div class="control-group">
<label for="altura">Altura</label>
<input type="text" name="altura" id="altura" placeholder="Altura ex.: 3.9" value="">
</div>
<div class="control-group">
<label for="cor">Cor</label>
<input type="text" name="cor" id="cor" placeholder="Cor" value="" required>
</div>
<div class="control-group">
<label for="preco">Preço</label>
<input type="text" name="preco" id="preco" placeholder="Preço ex.: 34.80" value="" required>
</div>
<div class="control-group">
<label for="desconto">Desconto</label>
<input type="number" name="desconto" id="desconto" placeholder="Desconto" value="">
</div>
<div class="control-group">
<label for="desconto_boleto">Deconto no boleto</label>
<input type="number" name="desconto_boleto" id="desconto_boleto" placeholder="Desconto no boleto" value="">
</div>
<div class="control-group">
<label for="max_parcelas">Máximo de parcelas</label>
<input type="number" name="max_parcelas" id="max_parcelas" placeholder="Máximo de parcelas" value="" required>
</div>
<div class="control-group">
<label for="estoque">Estoque</label>
<input type="number" name="estoque" id="estoque" placeholder="Estoque" value="" required>
</div>
<div class="control-group">
<label for="min_estoque">Estoque mínimo</label>
<input type="number" name="min_estoque" id="min_estoque" placeholder="Estoque mínimo" value="" required>
</div>
<div class="control-group">
<label for="credito">Crédito</label>
<input type="text" name="credito" id="credito" placeholder="Crédito" value="">
</div>
<div class="control-group">
<label for="data_cad">Data de cadastro</label>
<input type="date" name="data_cad" id="data_cad" placeholder="Data de Cadastro" value="" required>
</div>
<input type="hidden" name="enviado">
<button type="submit" class="btn">Inserir</button>
</fieldset>
</form>
</div>
</div>